<?php
session_start();

function run_query($query) {
	$DB_USER="mxdb";
	$DB_PASS="tagger";
	$DB_HOST="localhost";
	$DB_NAME="mxdb";
	$dbh = mysql_connect($DB_HOST, $DB_USER, $DB_PASS);
	mysql_select_db($DB_NAME, $dbh);
	$result = mysql_query($query, $dbh);
	if (!$result)
		die('<result type="failure">Invalid query: ' . mysql_error() . '</result>');
	return $result;
}

?>
